package com.lu.manage.core.shiro.service;

import com.lu.manage.core.shiro.ShiroUser;
import com.lu.manage.modular.system.model.User;

import java.util.List;

/**
 * @program LuBoot
 * @description:
 * @author: zhanglu
 * @create: 2019-10-08 17:16:00
 */
public interface UserAuthService {

    /**
     * 根据账号获取登录用户
     * @param account
     * @return
     */
    User user(String account);

    /**
     * 根据系统用户获取Shiro用户
     * @param user
     * @return
     */
    ShiroUser shiroUser(User user);

    List<String> findPermissionsByRoleId(String roleId);

    String findRoleNameByRoleId(String roleId);
}
